(hs-already-hidden-p): Move to end of line so hidden blocks will be
authorJ.D. Smith <jdsmith@as.arizona.edu>
Mon, 27 Nov 2006 18:07:55 +0000 (18:07 +0000)
committerJ.D. Smith <jdsmith@as.arizona.edu>
Mon, 27 Nov 2006 18:07:55 +0000 (18:07 +0000)
correctly identified.

lisp/progmodes/hideshow.el

index e7ed67ce61c7f652091479c2460b896e714bbe21..e50a9a4dda6da2fafc85ee67a82af772bb8ac360 100644 (file)
@@ -706,6 +706,7 @@ and `case-fold-search' are both t."
       (if (and c-reg (nth 0 c-reg))
           ;; point is inside a comment, and that comment is hidable
           (goto-char (nth 0 c-reg))
+       (end-of-line)
         (when (and (not c-reg)
                    (hs-find-block-beginning)
                    (looking-at hs-block-start-regexp))